<template>
    <QilinVueEditify v-model:editifyConfig="editifyConfig" content="不可以自定义粘贴图片"
    ></QilinVueEditify>
    <QilinVueEditify v-model:editifyConfig="editifyConfig1" content="可以自定义粘贴图片"
    ></QilinVueEditify>
</template>

<script setup>
import {reactive,ref} from "vue";


/*
    响应式选项区域
*/


/*
    数据变量定义区域
*/


/*
    计算属性等代码区域
*/


/*
    逻辑脚本代码区域
*/
const pasteImage=async(insertImage,file,editor)=>{
    // console.log(insertImage,file,editor);
    await Qilin.File.getFileBase64(file).then((data)=>{
        insertImage(editor,data);
    });
};

const editifyConfig=reactive({
    autoheight:true,
    autofocus:true
});
const editifyConfig1=reactive({
    autoheight:true,
    autofocus:true,
    customImagePaste:pasteImage
});



/*
    生命周期等代码区域
*/


</script>

<style lang="scss" scoped>
.qilin-{

}
</style>
